00001 #ifndef __gl2ext_h_
00002 #define __gl2ext_h_
00003
00004 #ifndef __gl2_h_
00005 # include <GLES2/gl2.h>
00006 #endif
00007
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 #ifndef GL_APIENTRYP
00047 # define GL_APIENTRYP GL_APIENTRY*
00048 #endif
00049
00050
00051
00052
00053
00054
00055 #ifndef GL_OES_compressed_ETC1_RGB8_texture
00056 #define GL_ETC1_RGB8_OES 0x8D64
00057 #endif
00058
00059
00060 #ifndef GL_OES_compressed_paletted_texture
00061 #define GL_PALETTE4_RGB8_OES 0x8B90
00062 #define GL_PALETTE4_RGBA8_OES 0x8B91
00063 #define GL_PALETTE4_R5_G6_B5_OES 0x8B92
00064 #define GL_PALETTE4_RGBA4_OES 0x8B93
00065 #define GL_PALETTE4_RGB5_A1_OES 0x8B94
00066 #define GL_PALETTE8_RGB8_OES 0x8B95
00067 #define GL_PALETTE8_RGBA8_OES 0x8B96
00068 #define GL_PALETTE8_R5_G6_B5_OES 0x8B97
00069 #define GL_PALETTE8_RGBA4_OES 0x8B98
00070 #define GL_PALETTE8_RGB5_A1_OES 0x8B99
00071 #endif
00072
00073
00074 #ifndef GL_OES_EGL_image
00075 typedef void* GLeglImageOES;
00076 #endif
00077
00078
00079 #ifndef GL_OES_depth24
00080 #define GL_DEPTH_COMPONENT24_OES 0x81A6
00081 #endif
00082
00083
00084 #ifndef GL_OES_depth32
00085 #define GL_DEPTH_COMPONENT32_OES 0x81A7
00086 #endif
00087
00088
00089 #ifndef GL_OES_mapbuffer
00090
00091 #define GL_WRITE_ONLY_OES 0x88B9
00092 #define GL_BUFFER_ACCESS_OES 0x88BB
00093 #define GL_BUFFER_MAPPED_OES 0x88BC
00094 #define GL_BUFFER_MAP_POINTER_OES 0x88BD
00095 #endif
00096
00097
00098 #ifndef GL_OES_rgb8_rgba8
00099 #define GL_RGB8_OES 0x8051
00100 #define GL_RGBA8_OES 0x8058
00101 #endif
00102
00103
00104 #ifndef GL_OES_stencil1
00105 #define GL_STENCIL_INDEX1_OES 0x8D46
00106 #endif
00107
00108
00109 #ifndef GL_OES_stencil4
00110 #define GL_STENCIL_INDEX4_OES 0x8D47
00111 #endif
00112
00113
00114 #ifndef GL_OES_texture3D
00115 #define GL_TEXTURE_WRAP_R_OES 0x8072
00116 #define GL_TEXTURE_3D_OES 0x806F
00117 #define GL_TEXTURE_BINDING_3D_OES 0x806A
00118 #define GL_MAX_3D_TEXTURE_SIZE_OES 0x8073
00119 #define GL_SAMPLER_3D_OES 0x8B5F
00120 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES 0x8CD4
00121 #endif
00122
00123
00124 #ifndef GL_OES_texture_half_float
00125 #define GL_HALF_FLOAT_OES 0x8D61
00126 #endif
00127
00128
00129
00130
00131
00132 #ifndef GL_AMD_compressed_3DC_texture
00133 #define GL_3DC_X_AMD 0x87F9
00134 #define GL_3DC_XY_AMD 0x87FA
00135 #endif
00136
00137
00138 #ifndef GL_AMD_compressed_ATC_texture
00139 #define GL_ATC_RGB_AMD 0x8C92
00140 #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93
00141 #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE
00142 #endif
00143
00144
00145 #ifndef GL_EXT_texture_filter_anisotropic
00146 #define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
00147 #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
00148 #endif
00149
00150
00151
00152
00153
00154
00155 #ifndef GL_OES_compressed_ETC1_RGB8_texture
00156 #define GL_OES_compressed_ETC1_RGB8_texture 1
00157 #endif
00158
00159
00160 #ifndef GL_OES_compressed_paletted_texture
00161 #define GL_OES_compressed_paletted_texture 1
00162 #endif
00163
00164
00165 #ifndef GL_OES_EGL_image
00166 #define GL_OES_EGL_image 1
00167 #ifdef GL_GLEXT_PROTOTYPES
00168 GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
00169 GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
00170 #endif
00171 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
00172 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
00173 #endif
00174
00175
00176 #ifndef GL_OES_depth24
00177 #define GL_OES_depth24 1
00178 #endif
00179
00180
00181 #ifndef GL_OES_depth32
00182 #define GL_OES_depth32 1
00183 #endif
00184
00185
00186 #ifndef GL_OES_element_index_uint
00187 #define GL_OES_element_index_uint 1
00188 #endif
00189
00190
00191 #ifndef GL_OES_fbo_render_mipmap
00192 #define GL_OES_fbo_render_mipmap 1
00193 #endif
00194
00195
00196 #ifndef GL_OES_fragment_precision_high
00197 #define GL_OES_fragment_precision_high 1
00198 #endif
00199
00200
00201 #ifndef GL_OES_mapbuffer
00202 #define GL_OES_mapbuffer 1
00203 #ifdef GL_GLEXT_PROTOTYPES
00204 GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
00205 GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
00206 GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, void** params);
00207 #endif
00208 typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
00209 typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
00210 typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, void** params);
00211 #endif
00212
00213
00214 #ifndef GL_OES_rgb8_rgba8
00215 #define GL_OES_rgb8_rgba8 1
00216 #endif
00217
00218
00219 #ifndef GL_OES_stencil1
00220 #define GL_OES_stencil1 1
00221 #endif
00222
00223
00224 #ifndef GL_OES_stencil4
00225 #define GL_OES_stencil4 1
00226 #endif
00227
00228
00229 #ifndef GL_OES_texture_3D
00230 #define GL_OES_texture_3D 1
00231 #ifdef GL_GLEXT_PROTOTYPES
00232 GL_APICALL void GL_APIENTRY glTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels);
00233 GL_APICALL void GL_APIENTRY glTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels);
00234 GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
00235 GL_APICALL void GL_APIENTRY glCompressedTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data);
00236 GL_APICALL void GL_APIENTRY glCompressedTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data);
00237 GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
00238 #endif
00239 typedef void (GL_APIENTRYP PFNGLTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels);
00240 typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels);
00241 typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
00242 typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data);
00243 typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data);
00244 typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOES) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
00245 #endif
00246
00247
00248 #ifndef GL_OES_texture_float_linear
00249 #define GL_OES_texture_float_linear 1
00250 #endif
00251
00252
00253 #ifndef GL_OES_texture_half_float_linear
00254 #define GL_OES_texture_half_float_linear 1
00255 #endif
00256
00257
00258 #ifndef GL_OES_texture_float
00259 #define GL_OES_texture_float 1
00260 #endif
00261
00262
00263 #ifndef GL_OES_texture_half_float
00264 #define GL_OES_texture_half_float 1
00265 #endif
00266
00267
00268 #ifndef GL_OES_texture_npot
00269 #define GL_OES_texture_npot 1
00270 #endif
00271
00272
00273 #ifndef GL_OES_vertex_half_float
00274 #define GL_OES_vertex_half_float 1
00275 #endif
00276
00277
00278 #ifndef GL_AMD_compressed_3DC_texture
00279 #define GL_AMD_compressed_3DC_texture 1
00280 #endif
00281
00282
00283 #ifndef GL_AMD_compressed_ATC_texture
00284 #define GL_AMD_compressed_ATC_texture 1
00285 #endif
00286
00287
00288 #ifndef GL_EXT_texture_filter_anisotropic
00289 #define GL_EXT_texture_filter_anisotropic 1
00290 #endif
00291
00292 #ifdef __cplusplus
00293 }
00294 #endif
00295
00296 #endif